package br.pucrio.inf.les.genarch.core.models.dsl.implementation;

import br.pucrio.inf.les.genarch.models.implementation.GenericFragment;
import br.pucrio.inf.les.genarch.models.implementation.ImplementationPackage;

public class GenericFragmentBuilder {
	
	private GenericFragment implementationFragment;
	
	private GenericFragmentBuilder() {
		this.implementationFragment = ImplementationPackage.eINSTANCE.getImplementationFactory().createImplementationFragment();
	}
	
	public GenericFragment build() {
		return this.implementationFragment;
	}
	
	public static GenericFragmentBuilder genericFragment() {
		return new GenericFragmentBuilder();
	}
	
	public GenericFragmentBuilder name(String name) {
		this.implementationFragment.setName(name);
		return this;
	}
	
	public GenericFragmentBuilder content(String content) {
		this.implementationFragment.setContent(content);
		return this;
	}
	
	public GenericFragmentBuilder path(String path) {
		this.implementationFragment.setPath(path);
		return this;
	}

}
